<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>目标列表</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		
	</style>
</head>
<body>
	<%@ include file="include/topbar.jsp" %>
	<div class="container" style="margin-top: 60px">
			<div class="row">
				<jsp:include page="include/left.jsp" >
					<jsp:param value="goal" name="tag"/>
				</jsp:include>
	
		<div class="span9" >
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0;margin-top:px">		
				<li >
					<h4><i class="icon-flag"></i>&nbsp;目标列表</h4>
				</li>
				<c:if test="${role eq 'leader' }" var="result">
					<a href="addgoal.jspx" class="pull-right"><i class="icon-plus"></i>添加目标</a>
				</c:if>
					
				
			</ul>
			<div class="wall">
					<c:if test="${empty goallist }">
					<div style="text-align:center">暂时没有目标！</div>
				
					</c:if>
			</div>	
			<c:forEach items="${goallist }" var="goal">
				
				
				
					<div class="row">
						<div class="narrow subproject" >
						<div class="span9">
							<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0;margin-top:15px">
        						<li ><a href="task.jspx?gid=${goal.id }"><i class="icon-screenshot"></i>${goal.name }</a></li>
        						<c:if test="${result }">
        							<li class="pull-right"><a href="editgoal.jspx?gid=${goal.id }" ><i class="icon-edit"></i>编辑</a></li>
        						</c:if>
        						

     						</ul>

									
							<div class="wall" style="padding:20px;border-radius:0px">
								<strong>
								创建时间：	
								</strong>
								<p>${goal.createTime }</p>
								<strong>
									目标描述：
								</strong>
								<p>${goal.desc }</p>
								
								</div>
							</div>
						
							</div>	
						</div>
						</c:forEach>
					</div>

			
			
			
				
			</div>	</div>
	
</body>
</html>